package day7;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileR {
    public static void main(String[] args) {
        Reader reader = null;
        try {
            reader = new FileReader("D:\\tmp\\fuyang.txt");
            int ch = 0;
            //???char []cr=new char[40];
            while ((ch = reader.read()) != -1) {
                System.out.print((char) ch);
            }

        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            try {
                if (reader != null)
                    reader.close();
            } catch (IOException e) {

            }
        }

    }
}
